﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJ.Data.Partner;
using PJ.Framework.Common;

namespace PJ.Business.Partner
{
    /// <summary>
    /// CustomerService class
    /// </summary>
    public class CustomerService : PartnerService<ICustomer, ICustomerData, ICustomerProvider>, ICustomerService
    {
        public CustomerService()
            : base(InjectionBroker.Resolve<ICustomerProvider>())
        {
        }

        [Microsoft.Practices.Unity.InjectionConstructor]
        public CustomerService(ICustomerProvider dataService)
            : base(dataService)
        {
        }


        public override ICustomer CreateNewItem()
        {
            return new Customer();
        }
    }
}


